<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<title>管理员更新 - 学生意见管理系统</title>
		<meta th:replace="~{/include/all_include ::  title}"/>
		<link
			th:href="@{/common/resource/H-ui.admin/static/h-ui.admin/css/H-ui.login.css}"
			rel="stylesheet" type="text/css" />
		<meta name="keywords" content="学生意见管理系统-登录">
		<meta name="description" content="学生意见管理系统-登录">
		</head>
	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页
			<span class="c-gray en">&gt;</span>权限模块 
			<span class="c-gray en">&gt;</span> 管理员更新
			<a class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px"
				href="javascript:location.replace(location.href);" title="刷新">
				<i class="Hui-iconfont">&#xe68f;</i>
			</a>
		</nav>
		<!-- 内容 -->
		<article class="page-container">
			<form class="form form-horizontal" th:action="@{/back/users/adminsUpdateSubmitPassword}" method="post" id="formId">
				<input type="hidden" name="id" th:value="${response?.data?.one?.id}"/>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>修改密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text"  placeholder="请输入密码" id="password" name="password">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>确认密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text"  placeholder="请输入密码" id="password" name="password">
					</div>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
						<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit">
							<i class="Hui-iconfont">&#xe632;</i> 提交
						</button>
					</div>
				</div>
			</form>
		</article>
		<footer th:replace="~{/include/all_include ::  footer}"/>

		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/My97DatePicker/4.8/WdatePicker.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/jquery.validation/1.14.0/jquery.validate.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/jquery.validation/1.14.0/validate-methods.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/jquery.validation/1.14.0/messages_zh.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/webuploader/0.1.5/webuploader.min.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/ueditor/1.4.3/ueditor.config.js}"></script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/ueditor/1.4.3/ueditor.all.min.js}"> </script>
		<script type="text/javascript" th:src="@{/common/resource/H-ui.admin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js}"></script>
		<script type="text/javascript">
		$(function(){
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			
			//表单验证
			$("#formId").validate({
				rules:{
					roleId:{
						required:true,
					},
					email:{
						required:true,
						minlength:4,
						maxlength:50
					},
					nickName:{
						required:true,
					},
					trueName:{
						required:true,
					},
					phone:{
						required:true,
						isPhone:true,
					}
		
				},
				onkeyup:false,
				focusCleanup:true,
				success:"valid",
				submitHandler:function(form){
					$(form).ajaxSubmit({
						type: 'post',
						success: function(data){
							console.log("==data==",data)
							data = JSON.parse(data);
							layer.msg(data.info,{icon:1,time:3000},function(){
								/* 关闭当前窗口 */
								if (data.code == '0') {
									var index = parent.layer.getFrameIndex(window.name);
									parent.$('.btn-refresh').click();
									parent.layer.close(index);
								}
							});
						},
		                error: function(XmlHttpRequest, textStatus, errorThrown){
							layer.msg('error!',{icon:1,time:1000});
						}
					});
				}
			});
		});
		</script>
		<!--/请在上方写此页面业务相关的脚本-->
	</body>
</html>